<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>let用法</title>
</head>
<body>
<script>
    for (let i = 0; i <5; i++) {
        console.log(i);
    }
    console.log(i);
</script>
</body>
</html>